package puzzle.slilin2.data;

/**
 * 数値セルの状態。
 * 
 * @author tomoto
 */
public class NumberCellState extends CellState {
    public static final int EMPTY = -1;
    
    private int m_number = EMPTY;
    
    public NumberCellState() {
    }
    
    public void setNumber(int number) {
        m_number = number;
    }
    
    public int getNumber() {
        return m_number;
    }

    @Override
    public void copyFrom(CellState s) {
		NumberCellState ncs = (NumberCellState) s;
		super.copyFrom(s);
		m_number = ncs.m_number;
    }
    
	@Override
	public CellState dup() {
		NumberCellState s = new NumberCellState();
		s.copyFrom(this);
		return s;
	}
}
